﻿using UnityEngine;
using System.Collections;

public class BackGround : MonoBehaviour {

    MeshRenderer mesh;
    public float speed = 1;
	void Start () {
        mesh = GetComponent<MeshRenderer>();
	}
	
	
	void Update () {
        mesh.material.mainTextureOffset += Vector2.up * speed * Time.deltaTime;
	}
}
